package mechanism.staticinhrit;

public class B extends A{
	// @Override -- 对于static来说，这叫"hide"
	public static void hi(){
		System.out.println(B.class);
	}
	
	// 如果没有这个方法，调用new B().saySomething()会sysout:"class mechanism.staticinhrit.A"
	@Override
	public void saySomething() {
		hi();
	}
}
